package managedBean; 
 
import entity.Event; 
import java.util.List; 
import javax.ejb.EJB; 
import javax.faces.bean.ManagedBean; 
import javax.faces.bean.RequestScoped; 
import session.stateless.EventSessionBean; 
 
@ManagedBean(name="eventDataTableBean") 
@RequestScoped 
public class EventDataTableBean { 
    @EJB 
    private EventSessionBean eventSessionBean; 
 
    public EventDataTableBean() { 
    } 
 
    public List<Event> getEvents() 
    { 
        return eventSessionBean.getAllEvents(); 
    } 
}